package com.alibaba.service;


import com.alibaba.bean.PkR;
import com.alibaba.bean.RankListData;
import com.alibaba.mapper.PkInterfaceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PkInterfaceService {
    @Autowired
    PkInterfaceMapper pkInterfaceMapper;

    public PkR selectRank1(int userId){
        return pkInterfaceMapper.selectRank1(userId);
    }
    public PkR selectRank2(int userId){
        return pkInterfaceMapper.selectRank2(userId);
    }
    public int selectId1(int hoursenum){
        return pkInterfaceMapper.selectId1(hoursenum);
    }
    public int selectId2(int hoursenum){
        return pkInterfaceMapper.selectId2(hoursenum);
    }
    public int deleteRank1(int id){
        return pkInterfaceMapper.deleteRank1(id);
    }
    public void updatatimes(int userId){
        pkInterfaceMapper.updatetimes(userId);
    }
    public int selecttimes(int userId){
        return pkInterfaceMapper.selecttimes(userId);
    }
}
